<script>
import {defineComponent} from 'vue'

export default defineComponent({
  name: "Home"
})
</script>

<template>
  <div class="home">
    <h1>我是home的内容</h1>
    <router-link to="/home/news">News</router-link>
    <router-link to="/home/message">Message</router-link>
    <hr>
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<style scoped lang="less">
h1{
  width: 100%;
  background-color: #15e79e;
}
a{
  border-radius: 15px;
  padding: 5px;
  display: inline-block;
  background-color: #f89106;
  text-decoration: none;
  font-size: 20px;
  color: cornflowerblue;
  margin: 10px 10px;
}
</style>
